import request from '@/utils/request'

/** 物流模板枚举接口 */
export function baseTemplate (params) {
  return request({
    url: '/logistic/base/template',
    method: 'get',
    params
  })
}

/** 基础物流价格分页 */
export function baseList(data) {
  return request({
    url: '/logistic/base/page',
    method: 'post',
    data
  })
}

/** 物流数据导入-json文件 */
export function importAll(data) {
  return request({
    url: '/logistic/all/import',
    method: 'post',
    data
  })
}


// 基础物流价格数据导入-json文件
export function importBase(post) {
  return request({
    url: '/logistic/base/import',
    method: 'post',
    post
  })
}
/** 物流等级枚举接口 */
export function baseLevel (params) {
  return request({
    url: '/logistic/base/level',
    method: 'get',
    params
  })
}
/** 物流等级枚举接口 */
export function baseRegion (params) {
  return request({
    url: '/logistic/base/region',
    method: 'get',
    params
  })
}



/** 物流模板枚举接口 */
export function productLogisticTemplateList (data) {
  return request({
    url: '/logistic/base/template',
    method: 'get',
    data
  })
}
/** 物流区域中文名枚举接口 */
export function productLogisticCnRegion (data) {
  return request({
    url: '/logistic/base/region',
    method: 'get',
    data
  })
}
/** 商品物流价格分页 */
export function productLogisticList (data) {
  return request({
    url: '/logistic/product/page',
    method: 'post',
    data
  })
}
// 导出商品物流数据
export function exportProductList (data) {
  return request({
    url: '/logistic/product/export',
    method: 'post',
    data,
    responseType:"blob"
  })
}
// 导出物流黑白名单
export function exportBlackWhiteList (data) {
  return request({
    url: '/logistic/blackWhite/export',
    method: 'post',
    data,
    responseType:"blob"
  })
}